<div class="pageContent">
{if $action_name=='add'}
<form method="post" action="{:U($module_name.'/insert')}" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone);">
{else}
<form method="post" action="{:U($module_name.'/update')}" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone);">
{/if}
	{if $info['id']}
		<input type="hidden" name="id" value="{$info['id']}" />
	{/if}
	<div class="pageFormContent" layoutH="56" align="center">
		{if $info['id']}
		<dl>
			<dt><label>名称：</label></dt>
			<dd>
				<input name="title" value="{$info['title']}" type="text" />
			</dd>
		</dl>
		<dl>
			<dt><label>标识：</label></dt>
			<dd>
				<input readonly="readonly" class="required" name="element" value="{$info['element']}" type="text" />
			</dd>
		</dl>
		<dl>
			<dt><label>平台：</label></dt>
			<dd>
				<input class="required" name="platform" value="{$info['platform']}" type="text" />
			</dd>
		</dl>
		{else}
		<dl>
			<dt><label>名称：</label></dt>
			<dd>
				<input name="title" class="required" value="{$info['title']}" type="text" />
			</dd>
		</dl>
		<dl>
			<dt><label>标识：</label></dt>
			<dd>
				<input name="element" class="required" value="{$info['element']}" type="text" />
			</dd>
		</dl>
		<dl>
			<dt><label>平台：</label></dt>
			<dd>
				<select name="platform">
					<option value="ALL" selected="selected">全部</option>
					<php>$issys=0;</php>
					<volist name="sysplatform" id="s">
						<php>
							if($s['value']=='SYS'){
								$issys=1;
							}
						</php>
						<option value="{$s['value']}">{$s['title']}</option>
					</volist>
					{if $issys==0}<option value="SYS">系统</option>{/if}
				</select>
			</dd>
		</dl>
		{/if}
		<dl>
			<dt><label>内容：</label></dt>
			<dd>
				<input name="value" class="required" type="text" value="{$info['value']}" size="30" alt="请输入名称"/>
			</dd>
		</dl>
	</div>
	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
			<li>
				<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
			</li>
		</ul>
	</div>
</form>
</div>
